package jafou.Model;

import java.util.Date;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Forum {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String title;
	
	@Persistent
	private String tagline;
	
	@Persistent
	private Text sideBar;
	
	@Persistent
	private boolean isDisabled;
	
	@Persistent
	private Date createdOn;
	
	@Persistent
	private String skin;
	
	@Persistent
	private String analyticCode;
	
	@Persistent
	private String importSecret;
	
	public Forum(String title) {
		this.title = title;
		this.createdOn = new Date();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTagline() {
		return tagline;
	}

	public void setTagline(String tagline) {
		this.tagline = tagline;
	}

	public Text getSideBar() {
		return sideBar;
	}

	public void setSideBar(String sideBar2) {
		this.sideBar = new Text(sideBar2);
	}

	public boolean isDisabled() {
		return isDisabled;
	}

	public void setDisabled(boolean isDisabled) {
		this.isDisabled = isDisabled;
	}

	public Date getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getSkin() {
		return skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public String getAnalyticCode() {
		return analyticCode;
	}

	public void setAnalyticCode(String analyticCode) {
		this.analyticCode = analyticCode;
	}

	public String getImportSecret() {
		return importSecret;
	}

	public void setImportSecret(String importSecret) {
		this.importSecret = importSecret;
	}

}
